import request from '@/utils/request.js'
//创建地点
export const createLocationService = (data) => {
    return request.post('/location/create', data)
}

//删除地点
export const deleteLocationService = (id) => {
    return request.delete('/location/delete?id='+id)
}

//批量删除
export const batchDeleteLocationService = (ids)=>{
    return request.delete('/location/delete/batch',{data:ids})
}

//分页查询
export const LocationListService = (params)=>{
    return request.get('/location/selectPage',{params})
}

//更新地点
export const updateLocationService = (data) => {
    return request.post('/location/update', data)
}

//根据地名查找
export const selectByNameService = (name)=>{
    return request.get('/location/findByName?name='+name)
}
